import _Icon from './icon.vue';
import type { App } from 'vue';
import { getComponentPrefix } from '../_utils/global-config';

const Icon = Object.assign(_Icon, {
    install(app: App) {
        const componentPrefix = getComponentPrefix();
        app.component(componentPrefix + _Icon.name, _Icon);
    }
});

export type IconInstanse = InstanceType<typeof _Icon>;
export type { IconProps } from './interface';
export default Icon;